﻿using Microsoft.Extensions.Hosting;
using Sayook.Schedule.Job;
using Sayook.Schedule.Server;

namespace Sayook.Schedule.Client
{
    class Program
    {
        static void Main(string[] args)
        {
            CreateHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
            .ConfigureServices((hostContext, services) =>
            {
                services.AddQuartzHostService();
                services.AddQuartzJobService();
            })
            .UseConsoleLifetime();
    }
}
